<!DOCTYPE html>
<html xmlns:shiro="http://www.w3.org/1999/xhtml" xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="@{include}::header"></head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">
        <fieldset class="table-search-fieldset">
            <legend>搜索信息</legend>
            <form class="layui-form layui-form-pane" action="">
                <input id="recordType" name="recordType" type="hidden" th:value="${recordType}" />
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">所属片区</label>
                        <div class="layui-input-inline">
                            <select id="pianquId" name="pianquId" class="layui-input" lay-search="" lay-filter="pianquId">
                                <option value="">所属片区</option>
                                <th:block th:each="d : ${pianquses}">
                                    <option th:value="${d.id}" th:text="${d.pianquName}"></option>
                                </th:block>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">申请/作业企业</label>
                        <div class="layui-input-inline">
                            <select id="shopId" name="shopId" lay-search="" class="layui-input">
                                <option value="">申请/作业企业</option>
                                <th:block th:each="c : ${ShopList}">
                                    <option th:value="${c.id}" th:text="${c.shopName}" ></option>
                                </th:block>
                            </select>
                        </div>
                    </div>
<!--                    <div class="layui-inline">-->
<!--                        <label style="width: 100px;" class="layui-form-label">申请时间</label>-->
<!--                        <div class="layui-input-inline" style="width: 270px;">-->
<!--                            <input type="text" class="layui-input" id="timeRange" placeholder="请选择">-->
<!--                        </div>-->
<!--                    </div>-->

                    <div class="layui-inline">
                        <label style="width: 100px;" class="layui-form-label">开始时间</label>
                        <div class="layui-input-inline" style="width:120px;">
                            <input type="text" name="begin_date" id="begin_date" th:value="${begin_date}" placeholder="请选择开始时间" autocomplete="off" class="layui-input" />
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label style="width: 100px;" class="layui-form-label">结束时间</label>
                        <div class="layui-input-inline" style="width:120px;">
                            <input type="text" name="end_date" id="end_date" th:value="${end_date}" placeholder="请选择结束时间" autocomplete="off" class="layui-input" />
                        </div>
                    </div>

                    <div class="layui-inline">
                        <button type="submit" class="layui-btn layui-btn-primary  layui-btn-sm" lay-submit lay-filter="data-search-btn">
                            <i class="layui-icon"></i> 搜 索</button>
                    </div>
                </div>
            </form>
        </fieldset>
        <script type="text/html" id="toolbarDemo">
            <div class="layui-btn-container">
<!--                <button shiro:hasPermission="module:fireWork:add" class="layui-btn layui-btn-sm data-add-btn"-->
<!--                        lay-event="add">添加-->
<!--                </button>-->
                <button shiro:hasPermission="module:fireWork:export" class="layui-btn layui-btn-sm data-add-btn" lay-event="export">数据导出</button>
                <button shiro:hasPermission="module:fireWork:exportCount" class="layui-btn layui-btn-sm data-add-btn" lay-event="exportWorkCount">动火次数导出</button>
                <button shiro:hasPermission="module:fireWork:exportCount" class="layui-btn layui-btn-sm data-add-btn" lay-event="exportWorkCountInfo">动火次数和时长导出</button>
            </div>
        </script>
        <script type="text/html" id="toolbarHigh">
            <div class="layui-btn-container">
                <button shiro:hasPermission="module:fireWork:export" class="layui-btn layui-btn-sm data-add-btn" lay-event="export">数据导出</button>
            </div>
        </script>
        <table class="layui-hide" id="exampleTable" lay-filter="currentTableFilter"></table>
        <script type="text/html" id="currentTableBar">
<!--            <a class="layui-btn layui-btn-xs data-count-edit" shiro:hasPermission="module:fireWork:edit" lay-event="edit">编辑</a>-->
            <a class="layui-btn layui-btn-xs data-count-edit" lay-event="detail">详情</a>
            {{#  if(d.state === 2 || d.state === 3){ }}
            <a class="layui-btn layui-btn-xs data-count-edit" shiro:hasPermission="module:fireWork:generateTicket" lay-event="generateTicket">生成作业票</a>
            {{#  } }}
            <a class="layui-btn layui-btn-xs layui-btn-danger data-count-delete" shiro:hasPermission="module:fireWork:remove" lay-event="delete">删除</a>
        </script>
    </div>
</div>
<!--shiro控制bootstraptable行内按钮看见性 来自bootdo的创新方案 -->
<div th:include="@{include}::footer"></div>
<script type="text/javascript" th:src="@{/js/appjs/module/fireWork/list.js?v=1}"></script>
</body>
</html>
